﻿<UserControl x:Class="FirstFloor.ModernUI.App.Pages.items.EditDeleteItem"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:mui="http://firstfloorsoftware.com/ModernUI"
             
             
             mc:Ignorable="d" ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible" SelectiveScrollingGrid.SelectiveScrollingOrientation="Both" d:DesignWidth="898" d:DesignHeight="1066" Width="Auto" Height="Auto">
    <Grid ScrollViewer.HorizontalScrollBarVisibility="Auto" SelectiveScrollingGrid.SelectiveScrollingOrientation="Both" Focusable="True" ScrollViewer.CanContentScroll="True" UseLayoutRounding="True" ScrollViewer.VerticalScrollBarVisibility="Auto" VerticalAlignment="Top">
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <ScrollViewer Margin="0,39,46,0" VerticalScrollBarVisibility="Auto" CanContentScroll="True" HorizontalScrollBarVisibility="Auto" VerticalAlignment="Top">
            <Grid ScrollViewer.CanContentScroll="True" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" UseLayoutRounding="True" HorizontalAlignment="Center" VerticalAlignment="Center">
                <GroupBox Header="   بيانات الصنف   " HorizontalAlignment="Left" VerticalAlignment="Top" Height="286" Width="848" FlowDirection="RightToLeft" FontFamily="/ModernUIDemo;component/Content/font/#(AH) Manal Bold" FontSize="16" Margin="0,244,0,0">
                    <Grid>
                        <!--<Grid.Resources>-->
                            <!--Create list of enumeration values-->
                            <!--<ObjectDataProvider x:Key="myEnum" MethodName="GetValues" ObjectType="{x:Type core:Enum}">
                                <ObjectDataProvider.MethodParameters>
                                    <x:Type Type="local:OrderStatus"/>
                                </ObjectDataProvider.MethodParameters>
                            </ObjectDataProvider>
                        </Grid.Resources>-->

                        <DockPanel>
                       
                            <DataGrid Name="DG1" ItemsSource="{Binding}" AutoGenerateColumns="False" IsSynchronizedWithCurrentItem="True" IsEnabled="True" IsReadOnly="True" EnableColumnVirtualization="True" SelectionChanged="DG1_SelectionChanged" SelectedValue="-2">
                                <DataGrid.Columns>
                                    <mui:DataGridTextColumn Header="اسم المنتج"  Binding="{Binding ProductName }"/>
                                    <mui:DataGridTextColumn Header=" الاسم التجاري للصنف" Binding="{Binding ComName}"  />
                                    <mui:DataGridTextColumn Header="الشركة المنتجة" Binding="{Binding ManCompany}"/>
                                    <mui:DataGridTextColumn Header="باركود" Binding="{Binding Barcode}" />
                                    <mui:DataGridTextColumn Header="السعر" Binding="{Binding test}"/>
                                </DataGrid.Columns>
                               
                            </DataGrid>
                        </DockPanel>
                        
                    </Grid>

                </GroupBox>
                <Button x:Name="btn_StoreMange_Copy" Content="تعديل" HorizontalAlignment="Left" Margin="577,822,0,0" VerticalAlignment="Top" Width="162" FontFamily="/ModernUIDemo;component/Content/font/#(AH) Manal Bold" FontSize="48" Height="63"/>
                <Button x:Name="btn_StoreMange_Copy1" Content="إلغاء" HorizontalAlignment="Left" Margin="342,822,0,0" VerticalAlignment="Top" Width="162" FontFamily="/ModernUIDemo;component/Content/font/#(AH) Manal Bold" FontSize="48" Height="63"/>
                <Button x:Name="btn_StoreMange_Copy2" Content="حذف" HorizontalAlignment="Left" Margin="107,822,0,0" VerticalAlignment="Top" Width="162" FontFamily="/ModernUIDemo;component/Content/font/#(AH) Manal Bold" FontSize="48" Height="63"/>
                <GroupBox Header="   البحث" HorizontalAlignment="Left" VerticalAlignment="Top" Height="203" Width="848" FlowDirection="RightToLeft" FontFamily="/ModernUIDemo;component/Content/font/#(AH) Manal Bold" FontSize="16" Margin="0,24,0,0">
                    <Grid HorizontalAlignment="Left" Height="176" VerticalAlignment="Top" Width="836">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="141*"/>
                            <ColumnDefinition Width="695*"/>
                        </Grid.ColumnDefinitions>
                        <Label Content="اسم المنتج :" HorizontalAlignment="Left" Margin="253,21,0,0" FontSize="26" Width="185" FontWeight="Bold" FontFamily="/ModernUIDemo;component/Content/font/#(AH) Manal Bold" Grid.Column="1" Height="32" VerticalAlignment="Top"/>
                        <Button Content="بحث" HorizontalAlignment="Left" Margin="543,121,0,0" VerticalAlignment="Top" Width="123" FontFamily="/ModernUIDemo;component/Content/font/#(AH) Manal Bold" FontSize="16" Height="32" Grid.Column="1"/>
                        <ComboBox HorizontalAlignment="Left" Margin="350.985,21,0,0" VerticalAlignment="Top" Width="173" Height="32" ScrollViewer.CanContentScroll="True" FontFamily="/ModernUIDemo;component/Content/font/#(AH) Manal Bold" Grid.Column="1"/>
                        <Label Content="باركود المنتج :" HorizontalAlignment="Left" Margin="75,21,0,0" VerticalAlignment="Top" FontSize="26" Height="32" Width="185" FontWeight="Bold" FontFamily="/ModernUIDemo;component/Content/font/#(AH) Manal Bold" Grid.ColumnSpan="2"/>
                        <Label Content="الأسم التجارى للمنتج :" HorizontalAlignment="Left" Margin="0,58,0,0" VerticalAlignment="Top" FontSize="26" Height="32" Width="199" FontWeight="Bold" FontFamily="/ModernUIDemo;component/Content/font/#(AH) Manal Bold" Grid.ColumnSpan="2"/>
                        <TextBox HorizontalAlignment="Left" Height="32" Margin="75,58,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="283" ClipToBounds="True" FontSize="22" FontFamily="/ModernUIDemo;component/Content/font/#(AH) Manal Bold" Grid.Column="1"/>
                        <Label Content="الشركةالمصنعة :" HorizontalAlignment="Left" Margin="53,108,0,0" VerticalAlignment="Top" FontSize="26" Height="32" Width="142" FontWeight="Bold" FontFamily="/ModernUIDemo;component/Content/font/#(AH) Manal Bold" Grid.ColumnSpan="2"/>
                        <ComboBox HorizontalAlignment="Left" Margin="75,108,0,0" VerticalAlignment="Top" Width="173" Height="32" ScrollViewer.CanContentScroll="True" BorderThickness="4" FontFamily="/ModernUIDemo;component/Content/font/#(AH) Manal Bold" Grid.Column="1"/>
                        <TextBox HorizontalAlignment="Left" Height="32" Margin="75,21,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="173" ClipToBounds="True" FontSize="22" FontFamily="/ModernUIDemo;component/Content/font/#(AH) Manal Bold" Grid.Column="1"/>
                    </Grid>
                </GroupBox>
            </Grid>
        </ScrollViewer>
    </Grid>
</UserControl>
